Ext.define('appmod.view.resources.function.DetailView', {
    extend: 'Ext.form.Panel',
    alias: 'widget.functiondetailview',
    requires: [
		'appmod.view.resources.menu.AuthView',
		'appmod.view.resources.url.AuthView',
		'appmod.view.resources.uicomp.AuthView'
	],
    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
			bodyStyle:'padding:5px',

            items: [
                {
                    xtype: 'displayfield',
                    name: 'functionName',
					labelWidth : 60,
                    fieldLabel: '功能名称',
                    anchor: '100%'
                },
                {
                    xtype: 'hiddenfield',
                    name: 'id',
                    fieldLabel: 'Label',
                    anchor: '100%'
                },
				{
					xtype:'panel',
                    height: 370,
                    layout: {
                    	type: 'border'
                    },
					frame:true,
					items:[{
                   		xtype: 'tabpanel',
						region:'center',
						activeTab: 0,
						plain:true,
                    	items: [{
                    		xtype: 'menuauthview',
                        	title: '菜单授权视图',
							store:'MenuTreeInModule',
							padding: '1 1 1 1'
                    	},{
                    		xtype: 'urlauthview',
                        	title: '链接授权视图',
							padding: '1 1 1 1'
                    	}, {
							xtype: 'uicompauthview',
							title: '界面组件授权视图'
						}]					
					}
 					]										
				}
            ]
        });

        me.callParent(arguments);
    }

});